﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace wd_4_open_in_explorer
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        // diagnostic - 诊断的，
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string pname = "Explorer.exe";
            //string target_name = "gitlabutils.exe";
            string target_folder = "C:\\wfp\\gitlabutils";
            System.Diagnostics.ProcessStartInfo sdp = new System.Diagnostics.ProcessStartInfo(pname);
            sdp.Arguments = "/e," + target_folder;
            System.Diagnostics.Process.Start(sdp);
        }
    }
}
